#!/bin/bash
echo "JAVA_HOME=/data/jdk1.8.0_181" >> /etc/profile
echo 'PATH=$JAVA_HOME/bin:$PATH' >> /etc/profile
echo 'CLASSPATH=$JAVA_HOME/jib/dt.jar:$JAVA_HOME/lib/tools.jar' >> /etc/profile
echo "export PATH JAVA_HOME CLASSPATH" >> /etc/profile
source /etc/profile
